package com.kelp.codetoolkit.enums

/**
 * @author: liuyuebai
 * @date: 2025/8/6 20:13
 * @description:
 */
enum class JavaBaseRefTypeEnum(val refTypeName: String,val qualifiedName:String) {

    BOOLEAN("boolean", "java.lang.Boolean"),
    BYTE("byte", "java.lang.Byte"),
    CHAR("char", "java.lang.Character"),
    SHORT("short", "java.lang.Short"),
    INT("int", "java.lang.Integer"),
    LONG("long", "java.lang.Long"),
    FLOAT("float", "java.lang.Float"),
    DOUBLE("double", "java.lang.Double"),
    VOID("void", "java.lang.Void"),
    STRING("String", "java.lang.String");

    companion object{
        fun getByName(name:String):JavaBaseRefTypeEnum?{
            return values().find { it.qualifiedName == name }
        }
    }
}